<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
	<title> 面爱那个对象的基础知识练习</title>
</head>
<body>
<?php 

/**
* 
*/
class Person 
{

	var $name;
	var $age;
	var $sex;
	function say(){
		echo "这个人在说话";

	}
	function eat(){
			echo "这个人在吃"."<br>";


	}
	function run(){
			echo "这个人在跑"."<br>";


	}
}
	$p1=new Person();
	$p1->name="weiyingyue";
	echo "姓名是：".$p1->name."<br>";
	$p1->say();
	$p2=new Person();

	
	/*function __construct(argument)
	{
		# code...
	}*/

 ?>

</body>
</html>

